<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>v-bind指令</title>
</head>
<body>
<div id="app">
    <!--<div class="active"></div>-->
    <div :class="[{'active':isActive},errorCls]"></div>

</div>
<script src="../vue.min.js"></script>
<script>
    // v-bind动态更新元素上的属性

    var app = new Vue({
        el: "#app",
        data: {
            isActive:true,
            errorCls: 'error'
        }
    })
</script>
</body>
</html>